home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Text Processing / RTF->HTML Converter / html-trans < prev    next >
Text File  |  1993-11-16  |  5KB  |  185 lines

  1. # Paragraph Style Tags table
  2. # Format:
  3. #"name","starttag","endtag","col2mark","tabmark","parmark",allowtext,cannest,DeleteCol1
  4. .PTag
  5. "Normal","","\n","\t","\t","<p>\n",1,0,0
  6. "h1","<h1>\n","</h1>\n","\t","\t","<br>\n",0,0,0
  7. "h2","<h2>\n","</h2>\n","\t","\t","<br>\n",0,0,0
  8. "h3","<h3>\n","</h3>\n","\t","\t","<br>\n",0,0,0
  9. "h4","<h4>\n","</h4>\n","\t","\t","<br>\n",0,0,0
  10. "h5","<h5>\n","</h5>\n","\t","\t","<br>\n",0,0,0
  11. "h6","<h6>\n","</h6>\n","\t","\t","<br>\n",0,0,0
  12. "ul","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,0
  13. "ul-d","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,1
  14. "ol","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,0
  15. "ol-d","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,1
  16. "dl","<dl>\n<dt>","</dl>","\n<dd>","\t","\n<dt>",1,1,0
  17. "dir","<dir>\n<li>","</dir>","\n<li>","\n<li>","\n<li>",0,1,0
  18. "menu","<menu>\n<li>","</menu>\n","\n<li>","\n<li>","\n<li>",0,1,0
  19. "address","<address>","</address>\n","\t","\t","<br>\n",1,0,0
  20. "pre","<pre>","</pre>","\t","\t","\n",0,0,0
  21. "blockquote","<blockquote>","</blockquote>","\t","\t","\n",1,0,0
  22. "hr","<hr>","","","","",1,0,0
  23.  
  24. # Text STyle Tags table
  25. # Format
  26. # "name","Starttag","Endtag"
  27. .TTag
  28. "b","<b>","</b>"
  29. "i","<i>","</i>"
  30. "u","<u>","</u>"
  31. "em","<em>","</em>"
  32. "cite","<cite>","</cite>"
  33. "tt","<tt>","</tt>"
  34. "strong","<strong>","</strong>"
  35. "code","<code>","</code>"
  36. "samp","<samp>","</samp>"
  37. "kbd","<kbd>","</kbd>"
  38. "var","<var>","</var>"
  39. "dfn","<dfn>","</dfn>"
  40.  
  41. # Text Match Table
  42. # Format:
  43. # "Font",FontSize,Match,Mask,"TextStyleName"
  44. # "" is don't care for fonts
  45. # 0 is don't care for font size
  46. # Special names for TextStyleName
  47. # _Discard - text will not be output
  48. # _Name    - text will be used for an named anchor
  49. # _HRef    - text is an href
  50. # _Hot     - end of this text marks the end of hot text
  51. # _Literal - text is sent thorough without any translation
  52. # The order of bits for match and mask is:
  53. #    v^bDWUHACSOTIB - Bold
  54. #    v^bDWUHACSOTI - Italic
  55. #    v^bDWUHACSOT - StrikeThrough
  56. #    v^bDWUHACSO - Outline
  57. #    v^bDWUHACS - Shadow
  58. #    v^bDWUHAC - SmallCaps
  59. #    v^bDWUHA - AllCaps
  60. #    v^bDWUH - Hidden
  61. #    v^bDWU - Underline
  62. #    v^bDW - Word Underline
  63. #    v^bD - Dotted Underline
  64. #    v^b - Double Underline
  65. #    v^ - SuperScript
  66. #    v - SubScript
  67. #    v^bDWUIACSOTIB
  68. .TMatch
  69. #
  70. # First do specials, because they are higher priority than other matches
  71. # double-underline/not hidden -> hot text
  72. # double-underline/hidden -> href
  73. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  74. "",0,00100000000000,00100010000000,"_Hot"
  75. "",0,00100010000000,00100010000000,"_HRef"
  76.  
  77. # hidden/shadow -> literal
  78. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  79. "",0,00000010010000,00000010010000,"_Literal"
  80.  
  81. # hidden/outline -> Name
  82. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  83. "",0,00000010001000,00000010001000,"_Name"
  84.  
  85. # hidden/all other hiddens are discarded
  86. "",0,00000010000000,00000010000000,"_Discard"
  87.  
  88. # All Superscripts are assumed to be Footnotes - is this ok?
  89. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  90. "",0,01000000000000,01000000000000,"_FootNote"
  91.  
  92. # Regular matches - You can have multiple of these active
  93.  
  94. # monospace fonts -> tt
  95. "Courier",0,00000000000000,00000000000000,"tt"
  96. "Monoco",0,00000000000000,00000000000000,"tt"
  97.  
  98. # bold -> bold
  99. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  100. "",0,00000000000001,00000000000001,"b"
  101.  
  102. # italic/underline -> cite, italic/nounderline -> italic
  103. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  104. "",0,00000000000010,00000100000010,"i"
  105. "",0,00000100000010,00000100000010,"cite"
  106.  
  107. # any underline without italic -> underline
  108. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  109. "",0,00010000000000,00111100000010,"u"
  110. "",0,00001000000000,00111100000010,"u"
  111. "",0,00000100000000,00111100000010,"u"
  112. "",0,00100000000000,00111100000010,"u"
  113.  
  114. # outline,shadow -> em
  115. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  116. "",0,00000000001000,00000000001000,"em"
  117. "",0,00000000010000,00000000010000,"em"
  118.  
  119.  
  120. # Format:
  121. # "Paragraph Style",NestLevel,"ParagraphStyleName"
  122. # First Entry is the default if no style match. Should be level 0 
  123. # point to a Paragraph style with no markup
  124. .PMatch
  125. "Normal",0,"Normal"
  126. "heading 1",0,"h1"
  127. "heading 2",0,"h2"
  128. "heading 3",0,"h3"
  129. "heading 4",0,"h4"
  130. "heading 5",0,"h5"
  131. "heading 6",0,"h6"
  132. "ol",0,"ol"
  133. "ol 1",1,"ol"
  134. "ol 2",2,"ol"
  135. "ol 3",3,"ol"
  136. "ol 4",4,"ol"
  137. "ol 5",5,"ol"
  138. "ul",0,"ul"
  139. "ul 1",1,"ul"
  140. "ul 2",2,"ul"
  141. "ul 3",3,"ul"
  142. "ul 4",4,"ul"
  143. "ul 5",5,"ul"
  144. "numbered list",0,"ol-d"
  145. "numbered list 1",1,"ol-d"
  146. "numbered list 2",2,"ol-d"
  147. "numbered list 3",3,"ol-d"
  148. "numbered list 4",4,"ol-d"
  149. "numbered list 5",5,"ol-d"
  150. "bullet list",0,"ul-d"
  151. "bullet list 1",1,"ul-d"
  152. "bullet list 2",2,"ul-d"
  153. "bullet list 3",3,"ul-d"
  154. "bullet list 4",4,"ul-d"
  155. "bullet list 5",5,"ul-d"
  156. "dir",0,"dir"
  157. "dir 1",1,"dir"
  158. "dir 2",2,"dir"
  159. "dir 3",3,"dir"
  160. "dir 4",4,"dir"
  161. "dir 5",5,"dir"
  162. "small gloss",0,"dl"
  163. "small gloss 1",1,"dl"
  164. "small gloss 2",2,"dl"
  165. "small gloss 3",3,"dl"
  166. "small gloss 4",4,"dl"
  167. "small gloss 5",5,"dl"
  168. "glossary",0,"dl"
  169. "glossary 1",1,"dl"
  170. "glossary 2",2,"dl"
  171. "glossary 3",3,"dl"
  172. "glossary 4",4,"dl"
  173. "glossary 5",5,"dl"
  174. "menu",0,"menu"
  175. "menu 1",1,"menu"
  176. "menu 2",2,"menu"
  177. "menu 3",3,"menu"
  178. "menu 4",4,"menu"
  179. "menu 5",5,"menu"
  180. "pre",0,"pre"
  181. "blockquote",0,"blockquote"
  182. "address",0,"address"
  183. "hr",0,"hr"
  184.